//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_vec_welcome_message.sqf"
#include "x_setup.sqf"

private ["_vec","_vtype"];
PARAMS_2(_vec,_vtype);
_welcome_str = format [(localize "STR_DOM_MISSIONSTRING_627"), GVAR(name_pl)];
_vec_msg1 = switch (true) do {
	case (_vtype == "MHQ"): {
		(localize "STR_DOM_MISSIONSTRING_628")
	};
	case (_vtype == "Engineer"): {
		(localize "STR_DOM_MISSIONSTRING_629")
	};
	default {""};
};
_struct_text = composeText[parseText("<t color='#f0a7ff31' size='1'>" + _welcome_str + "</t>"), lineBreak,lineBreak,_vec_msg1];
_endtime = time + 8;
hintSilent _struct_text;
while {vehicle player != player && {alive player} && {time < _endtime} && {!__pGetVar(xr_pluncon)}} do {
	sleep 1;
	hintSilent _struct_text;
};
hintSilent "";